package cn.jiyun.controller;import cn.jiyun.common.config.Result;
import cn.jiyun.entity.XmAdvertisements;
import cn.jiyun.entity.XmIssues;
import cn.jiyun.service.IXmAdvertisementsService;
import cn.jiyun.service.IXmIssuesService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-11-27
 */
@RestController
@RequestMapping("/xm-platform/xm-issues")
public class XmIssuesController {
    @Autowired
    private IXmIssuesService xmIssuesService;
    @RequestMapping("/findPage")
    public Result findPage(Integer pageNum, Integer pageSize, @RequestBody XmIssues xmIssues){
        Page page = xmIssuesService.findPage(pageNum,pageSize,xmIssues);
        return Result.ok(page);
    }
}
